<%-- 
    Document   : informenviosms
    Created on : 20-dic-2010, 13:04:39
    Author     : Adrian
--%>

<%@page import="java.util.ArrayList"%>
<%@page import="com.ipartek.formacion.gestformwww.modelo.beans.InformeSms"%>
<%@include file="validarusuario.jsp"%>

<div class="contenido">
 <div id="submenu">
        <%if (request.getAttribute("idCurso") != null) {%>
            <ul>
                <li>
                    <a href="visualizar-curso-accion.do?idCurso=<%=request.getAttribute("idCurso")%>">Volver</a>
                </li>
            </ul>
        
        <%}else{%>
         <ul>
                <li>
                    <a href="visualizar-convocatoria-accion.do?idCon=<%=request.getAttribute("idCon")%>">Volver</a>
                </li>
            </ul>
        <%}%>
</div>
        <form action="" name="">
            <table width="100%">
                <th width="28%"><center>Nombre&nbsp;y&nbsp;Apellidos</center></th>
                <th width="13%"><center>Telefono</center></th>
                <th width="29%"><center>Mensaje&nbsp;Enviado</center></th>
                <th width="25%"><center>Respuesta&nbsp;Servicio</center></th>
                <th width="6%"><center>Estado</center></th>
                <% ArrayList<InformeSms> alInformeSms = (ArrayList<InformeSms>) request.getAttribute("informe");
                            if (alInformeSms != null && alInformeSms.size() > 0) {
                                int i = 0;
                                for (InformeSms infoSms : alInformeSms) {
                %>
                <tr <%if (i % 2 == 0) {%>class="estilocelda5"<%}%> align="center"><td align="left"><%=infoSms.getNombre()%>&nbsp;<%=infoSms.getApellidos()%></td><td><%=infoSms.getTelefono()%></td><td><%=infoSms.getSmsEnviado()%></td><td><%=infoSms.getRespuestaEnvio()%></td>
                    <td><%if (infoSms.isEnviado()) {%> <img alt="Mensaje Enviado" src="images/tick.png" /><%} else {%> <img alt="Mensaje No Enviado" src="images/cross.png" /> <%}%></td></tr>
                        <%i += 1;
                           }
                       }%>
            </table>
        </form>
    </div>
